package com.agui.exceptionDemo.service;


import com.agui.exceptionDemo.utils.Utils;
import org.springframework.stereotype.Service;

@Service
public class EDemoService {

    public String getMain(int a, int b){
        try {
            return Utils.divideS(a,b);
        } catch (Exception e) {
            System.out.println(e.getMessage());
            throw new RuntimeException("getMain-->>"+e.getMessage());
//            return e.getMessage();
        } finally {
            System.out.println(this.getClass().toString());
        }
    }
}
